<?php
App::uses('AppModel', 'Model');

class Topic extends AppModel {
	public $hasMany = array(
        'Category' => array(
            'className' => 'Category',
            'foreignKey' => 'topicId',
             'conditions' => array('Category.deleted' => '0'),
        )
    );
	public $validate = array(
		'name' => array(
        "rule" => "notEmpty",
		'message' => 'Nhập tiêu đề')
	);
}
